@extends('layouts.contentNavbarLayout')

@section('vendor-style')
  <link rel="stylesheet" href="{{asset('assets/vendor/libs/apex-charts/apex-charts.css')}}">
@endsection

@section('vendor-script')
  <script src="{{asset('assets/vendor/libs/apex-charts/apexcharts.js')}}"></script>
@endsection

@section('content')
  <div class="card mb-2">
    <!--/ User Sidebar -->

    @php
      $currentRouteName = Route::currentRouteName();
    @endphp

      <!-- User Content -->
    <div class="card-body p-2">
      <!-- User Pills -->
      <ul class="nav nav-pills flex-column flex-md-row">
        <li class="nav-item"><a
            class="nav-link {{str_contains($currentRouteName, 'statistics-doc') && strpos($currentRouteName, 'statistics-doc') === 0 ? 'active' : ''}}"
            href="/statistics"><i class="bx bx-user me-1"></i>Статистика врача</a></li>
        @if (App\Http\Controllers\Auth\User::userHasExtension('edit.statistics', ['read' => true]))
          <li class="nav-item"><a
              class="nav-link {{str_contains($currentRouteName, 'statistics-modals') && strpos($currentRouteName, 'statistics-modals') === 0 ? 'active' : ''}}"
              href="/statistics/statistics-modals"><i class="bx bx-lock-alt me-1"></i>Статистика модальностей</a></li>
          <!--<li class="nav-item"><a
              class="nav-link {{str_contains($currentRouteName, 'statistics-alldocs') && strpos($currentRouteName, 'statistics-alldocs') === 0 ? 'active' : ''}}"
              href="/statistics/statistics-alldocs"><i class="bx bx-bell me-1"></i>Статистика всех врачей</a></li>-->
        @endif
      </ul>
      <!--/ User Pills -->

    </div>
    <!--/ User Content -->
  </div>
  @yield('content-statistics')
@endsection
